package com.iuie.ns.datum.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 显示二维码
 * @author liujie
 */
@RequestMapping("datum/qrcode")
@Controller
public class QrCodeController {

	/**
	 * 显示二维码的页面
	 * @param text
	 * @param request
	 * @return
	 */
	@RequestMapping(value="/{text}",method=RequestMethod.GET)
    public String index(@PathVariable("text") String text, HttpServletRequest request){
		request.setAttribute("text", text);
		return "view-datum/qrcode/qrcode";
	}
	
}
